package com.xnf.api.comment;

import com.xnf.model.comment.dtos.CommentDto;
import com.xnf.model.comment.dtos.CommentLikeDto;
import com.xnf.model.comment.dtos.CommentSaveDto;
import com.xnf.model.common.dtos.ResponseResult;

/**
 * Created by xnf on 2022/3/14.
 */
public interface CommentControllerApi {

    /**
     * 保存评论
     * @param dto
     * @return
     */
    public ResponseResult saveComment(CommentSaveDto dto);

    /**
     * 点赞评论
     * @param dto
     * @return
     */
    public ResponseResult like( CommentLikeDto dto);

    /**
     * 查询评论
     * @param dto
     * @return
     */
    public ResponseResult findByArticleId(CommentDto dto);
}
